package test1;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;

public class Test2 {

	public static void main(String[] args) throws Exception{
		Date d=new Date();
		System.out.println(d);
		System.out.println(d.getTimezoneOffset());
		
		String[] ds=TimeZone.getAvailableIDs();
		for(String s:ds){
			System.out.println(s);
		}
		
		
		Calendar c=Calendar.getInstance(TimeZone.getTimeZone("Indian/Chagos"));
		Calendar c1=Calendar.getInstance(TimeZone.getTimeZone("Indian/Chagos"));
		c.set(1990, 9, 10, 10, 10);
		c1.set(1990, 9, 11, 10, 10);
		System.out.println(c1.before(c));
		//1970 0:0:0 0
		Date d1=c.getTime();
		System.out.println(d1);
		String sff="1990-10-10 01:10:49";
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		Date dd1=sdf.parse(sff);
		System.out.println(dd1+".....");
		String f=sdf.format(d1);
		System.out.println(f);
		//byte,boolean,short(Short) int ,char,long float double
		//long/double:8byte
		

	}

}
